#include "stdafx.h"
#include "SystemInfo.h"
#include<iostream> 
using namespace std; 
#include <Windows.h>

SystemInfo::SystemInfo()
{

}

SystemInfo::~SystemInfo()
{

}

int SystemInfo::GetInfomation()
{
	wchar_t ca[12] ;
	 LPTSTR namebuf= ca;
	DWORD namesize=12;

 DWORD maxlen;
 DWORD fileflag;
 wchar_t ca2[12] ;
 LPTSTR sysnamebuf = ca2;
 DWORD sysnamesize=10;

    GetVolumeInformation((LPCWSTR)"C:\\",namebuf,namesize,serialnumber,&maxlen,&fileflag,
   sysnamebuf,sysnamesize);

	return 1;
 }